<?php 
//链接数据库
require('./lib/init.php');
/***********************************************************************/
//检测是否登录,有操作权限
tiao();

//从数据库取出文章
$sql = "select * from cat";
$rs = mQuery($sql);
$data = array();
while ($row = mysql_fetch_assoc($rs)) {
	$data[] = $row;
}

require(ROOT.'/view/admin/catlist.html');
 ?>